package com.lxf.education.pojo;

import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
* @author:LuoXingFa;
* @version:Date:2022年4月20日下午12:49:04
*/
@Repository
public class CoursePojo implements Serializable {
	
	private Integer cid;//课程id
	private String cname;//课程名称
	private String cteacher;//任课教师
	private String cmajor;//课程所属专业
	private Integer tid;//教师id
	private List<TeacherPojo> tpojo = new ArrayList<>();//任课教师

	public Integer getTid() {
		return tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getCteacher() {
		return cteacher;
	}

	public void setCteacher(String cteacher) {
		this.cteacher = cteacher;
	}

	public String getCmajor() {
		return cmajor;
	}

	public void setCmajor(String cmajor) {
		this.cmajor = cmajor;
	}

	public List<TeacherPojo> getTpojo() {
		return tpojo;
	}

	public void setTpojo(List<TeacherPojo> tpojo) {
		this.tpojo = tpojo;
	}

	@Override
	public String toString() {
		return "CoursePojo{" +
				"cid=" + cid +
				", cname='" + cname + '\'' +
				", cteacher='" + cteacher + '\'' +
				", cmajor='" + cmajor + '\'' +
				", tid=" + tid +
				", tpojo=" + tpojo +
				'}';
	}
}
